package com.example.service.impl;

import com.example.mapper.MyTestMapper;
import com.example.service.MyTestService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(rollbackFor = Exception.class)
public class MyTestServiceImpl implements MyTestService {

    private final MyTestMapper myTestMapper;

    public MyTestServiceImpl(MyTestMapper myTestMapper) {
        this.myTestMapper = myTestMapper;
    }

    /**
     * 我的测试方法
     *
     * @param
     * @return void
     * @author jiwd
     * @date 2021-05-18 15:05:01
     */
    @Override
    public void findById() {
        myTestMapper.findById();
    }

    /**
     * 查询
     *
     * @param
     * @return void
     * @author jiwd
     * @date 2021-05-18 15:06:55
     */
    @Override
    public void findList() {
        myTestMapper.findList();
    }

    /**
     * 测试方法
     *
     * @param
     * @return String
     * @author jiwd
     * @date 2021-05-18 15:10:19
     */
    @Override
    public String test() {
        return myTestMapper.test();
    }

    /**
     * 查询用户
     *
     * @param
     * @return String
     * @author jiwd
     * @date 2021-05-18 15:17:43
     */
    @Override
    public String findUser() {

        return myTestMapper.findUser();

    }

    @Override
    public String uts() {
        return myTestMapper.uts();
    }
}